package com.jingwee.springbootevtlistener;

import com.jingwee.springbootevtlistener.listener.AppStartedListener;
import com.jingwee.springbootevtlistener.listener.CustomerListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringbootEvtlistenerApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringbootEvtlistenerApplication.class);
        springApplication.addListeners(new AppStartedListener());
//        springApplication.addListeners(new CustomerListener());
        springApplication.run(args);
    }

}
